<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html lang='en'>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="main.css" title="MainStyle">

<title>Building Petrus Blogger</title>

</head>

<body>

<div id="body">

<h2>Building Petrus Blogger</h2>

<p>Before building Petrus Blogger make sure that you have <a href="tools.html">developer tools</a> installed and that you obtained the latest version of the <a href="sources.html">source code</a>.</p>

<h3>API Keys</h3>

<p>In order to build Flickr and Twitter support you need to obtain API keys from these services.</p>

<p>The following environment variables must be set before building Petrus Blogger:
<ul>
<li>FLICKR_API_KEY</li>
<li>FLICKR_API_SECRET</li>
<!--<li>TWITTER_CONSUMER_KEY</li>-->
<!--<li>TWITTER_CONSUMER_SECRET</li>-->
</ul>
</p>

<p>If you don't need Flickr or Twitter support properly working then just set corresponding variables to some dummy value.</p>

<h3>Building with Ant</h3>

<p><strong>Building single jar:</strong></p>
<p><code>
$ cd petrus-blogger/build <br>
$ ant clean <br>
$ and bigjar
</code>
</p>
<p>This sequence will produce <code>petrus-blogger/dist/PetrusBlogger.jar</code> file.

<p><strong>Building bundles:</strong></p>
<p><code>
$ cd petrus-blogger/build <br>
$ ant clean <br>
$ and dist -Dbuild=XXXX
</code>
</p>
<p>This sequence will produce release bundles for Windows/Unix and Mac OS X:<br>
<code>petrus-blogger\release\petrus-blogger-XXXX.zip<br>
petrus-blogger\release\petrus-blogger-mac-XXXX.zip
</code>
</p>

<h3>Building with NetBeans</h3>

<p>Each component contains its own NetBeans project.</p>

<div class="vspace"></div>

<div id="copyright">
<p>&copy <a href='http://www.panteleyev.org/'>Petr Panteleyev</a>, 2006-2010</p>
</div>


</div>

</body>
</html>
